package com.lzs.adx.web.modules.security.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import com.lzs.adx.commmon.validator.group.AddGroup;
import com.lzs.adx.commmon.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class RegistDTO {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message="{sysuser.username.require}", groups = DefaultGroup.class)
    private String username;

    @ApiModelProperty(value = "密码")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @NotBlank(message="{sysuser.password.require}", groups = AddGroup.class)
    private String password;

    @ApiModelProperty(value = "手机号")
    private String mobile;


}
